package com.hushao.aimi.service;

import com.hushao.aimi.vo.AddressVo;
import com.hushao.aimi.common.ServerResponse;

public interface AddressService {
    /**
     * 添加地址
     * @param username
     * @param addressVo
     * @return
     * @throws Exception
     */
    ServerResponse add(String username, AddressVo addressVo)throws Exception;

    /**
     * 删除地址
     * @param addressId
     * @return
     * @throws Exception
     */
    ServerResponse add(String addressId)throws Exception;


    /**
     * 修改地址
     * @param username
     * @param addressVo
     * @return
     * @throws Exception
     */
    ServerResponse update(String username, AddressVo addressVo)throws Exception;

    /**
     * 地址详细
     * @param addressId
     * @return
     */
    ServerResponse detail(String addressId);

    /**
     * 查询用户地址列表
     * @param username
     * @return
     */
    ServerResponse listByUsername(String username);
}
